﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Templete.master" AutoEventWireup="true"
    CodeFile="ThirdPartyPersonList.aspx.cs" Inherits="EmployeeData_ThirdPartyPersonList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <fieldset>
        <legend>第三方人员资料管理</legend>
        <asp:GridView Width="100%" ID="GridView1" runat="server" AutoGenerateColumns="False"
            CssClass="display stylized" EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true"
            EmptyDataRowStyle-HorizontalAlign="Center" BorderWidth="0" AllowPaging="false"
            PageSize="8">
            <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ThirdPartyPersonEdit.aspx?id={0}"
                    DataTextField="NAME" HeaderText="人员姓名" ControlStyle-Font-Underline="false">
                    <ControlStyle Font-Underline="False"></ControlStyle>
                </asp:HyperLinkField>
                <asp:BoundField HeaderText="性别" DataField="SEX" />
                <asp:BoundField HeaderText="职位" DataField="POSITION" />
                <asp:BoundField HeaderText="电话" DataField="TELEPHONE" />
                <asp:BoundField HeaderText="身份证" DataField="IDENTITYCODE" />
                <asp:BoundField HeaderText="邮件地址" DataField="E_MAIL" />
                <asp:TemplateField HeaderText="有效" ItemStyle-CssClass="center" ItemStyle-HorizontalAlign="center"
                    HeaderStyle-HorizontalAlign="center">
                    <ItemTemplate>
                        <b>
                            <%# Eval("ACTIVE").ToString()  == "True" ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%></b>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            
            
            <RowStyle CssClass="gradeA" />
            <AlternatingRowStyle CssClass="gradeC" />
        </asp:GridView>
        <p>
            <a href="../System/ThirdParty_compnies_List.aspx" class="btn">返回第三方维护界面</a> &nbsp;
            <asp:HyperLink ID="link" NavigateUrl="ThirdPartyPersonEdit.aspx" runat="server" class="btn"><span class="icon icon-add">&nbsp;</span>添加新人员</asp:HyperLink>
        </p>
    </fieldset>
</asp:Content>
